package simplevideochat.communication
{
	import flash.events.Event;
	
	public class ServerRoomManagerEvent extends Event implements IRoomManagerEvent
	{			
		private var _room:IRoom;
		
		public function ServerRoomManagerEvent(type:String, room:IRoom=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.room = room;
		}		
		
		public function get room():IRoom
		{
			return _room;
		}
		
		public function set room(value:IRoom):void
		{
			_room = value;
		}
		
		static public function get ROOM_CREATED():String
		{
			return "nodejsRoomManagerEventRoomCreated";
		}
		
		/**
		 * Событие ошибки
		 */
		static public function get ERROR():String
		{
			return "server_room_manager_event_error";
		}
		
		
	}
}